package D01_03;

import java.util.Random;

public class Demo2 {
    public static void main(String[] args) {
        Random random = new Random();
        int n = random.nextInt(499) + 2;
        for (int j = 0; j <= n; j++) {
            if (j%2==0){
                System.out.print(j+" ");
            }
        }
    }
}
